package lab02.Test27;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by Administrator on 2017/11/8.
 */
public class Test27 {
    public static void main(String[] args) {
        while (true) {
            System.out.println("请输入一个整型数据：");
            Scanner sc = new Scanner(System.in);
            try {
                int x = sc.nextInt();
            } catch (InputMismatchException e) {
                System.out.println("错误，输入数据类型不是整型！！！");
            }
        }
    }
}
